package com.xxxx.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.xxxx.blog.utils.Entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_channel")
public class Channel extends Entity implements Serializable {

	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 *
	 */
	private String name;
	/**
	 *
	 */
	private Integer parentId;
	/**
	 *
	 */
	private String channelImg;
	/**
	 *
	 */
	private String summary;
	/**
	 * Y单页|其他非单页
	 */
	private String single;
	/**
	 *
	 */
	private String url;
	/**
	 *
	 */
	private String seoTitle;
	/**
	 *
	 */
	private String seoKeyword;
	/**
	 *
	 */
	private String seoDescription;
	/**
	 *
	 */
	private String content;
	/**
	 *
	 */
	private Integer orderby;
	/**
	 *
	 */
	private Date createDate;
	/**
	 *创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Integer createUser;
	/**
	 * D删除
	 */
	private String deletedFlag;

	private String pos;

	//设置父栏目对象
	private Channel parent;

}
